#include<stdio.h>
int compare(int* x,int* y);
int main(void){
    int a,b,c;
    scanf("%d %d %d",&a,&b,&c);
    compare(&a,&b);
    compare(&a,&c);
    compare(&b,&c);
    printf("%d %d",a,c);
    return 0;
}
int compare(int* x,int* y){
    if(*x>*y){
        *x = *x+*y;
        *y = *x-*y;
        *x = *x-*y;
    }
}